<link href="../Public/css/skin.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../Public/js/jquery-1.4.3.min.js"></script>
<script language="javascript" src="../Public/js/jquery.checkboxes.min.js"></script>
<script language="javascript" src="../Public/js/checkboxes.js"></script>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>用户列表</title>

<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
-->
</style>


<script type="text/javascript">

	function sendVirtualCoin(userId){
		var url = "__URL__/sendVirtualCoin/userId/"+userId ;
		
		openwindow(url,"赠送竞标币",550,400);
	}

	
	
	 
	 var newWindow; 
	 function openwindow(url,name,iWidth,iHeight){
	 	var url;                            //转向网页的地址;
	   	var name;                           //网页名称，可为空;
	   	var iWidth;                         //弹出窗口的宽度;
	   	var iHeight;                        //弹出窗口的高度;
	   	var iTop = (window.screen.availHeight-30-iHeight)/2;       //获得窗口的垂直位置;
	   	var iLeft = (window.screen.availWidth-10-iWidth)/2;        //获得窗口的水平位置;
	   	window.open(url,name,'height='+iHeight+',,innerHeight='+iHeight+',width='+iWidth+',innerWidth='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no');
	 }


</script>


<body>
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="17" valign="top"
				background="../Public/images/mail_leftbg.gif"><img
				src="../Public/images/left-top-right.gif" width="17" height="29" />
			</td>
			<td valign="top" background="../Public/images/content-bg.gif">
				<table
					width="100%" height="31" border="0" cellpadding="0" cellspacing="0"
					class="left_topbg" id="table2">
					<tr>
						<td height="31"><div class="titlebt">用户列表</div>
						</td>
					</tr>
				</table>
			</td>
			<td width="16" valign="top"
				background="../Public/images/mail_rightbg.gif"><img
				src="../Public/images/nav-right-bg.gif" width="16" height="29" />
			</td>
		</tr>
		
		<tr>
			<td valign="middle" background="../Public/images/mail_leftbg.gif">&nbsp;</td>
			<td valign="top" bgcolor="#F7F8F9">
				<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
					<tr>
						<td valign="top" class="td_top">
							<div>
								<a href="javascript:list.submit();" class="operation_dels"></a> <!-- 删除 -->
								<a href="__URL__/add" class="operation_add"></a>   <!-- 添加 -->
								
								<form method="post" id="search" action="__URL__/index">
									<a href="javascript:search.submit();" id="submit" class="search_submit"></a>   <!-- 搜索 -->
										邮箱<input type="text" id="mail"		name="mail" value="" class="search_input" /> 
										用户名<input	type="text" id="name" name="name" value=""	class="search_input" />
								</form>
							</div>
						</td>
					</tr>
					
					<tr>
						<td>
							
							<form method="post" id="list" action="__URL__/dels">
								<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC" class="content">
									<tr class="tr_title">
										<td width=5%>
											<input type="checkbox" name="checkbox" value="checkbox" id="selectAll">
										</td>
										<td width="5%">ID</td>
										<td width="10%">昵称</td>
										<td width="15%">邮箱</td>
										<td width="15%">IP</td>
										<td width="10%">{$Think.config.sysconfig.beat_name}数</td>
										<td width="10%">{$Think.config.sysconfig.pointb_name}数</td>
										<td width="10%">状态</td>
										<td width="20%">操作</td>
									</tr>
									
									<iterate name="userdata" id="v">  <!-- 遍历输出用户 -->
										<tr class="tr_content">
											<td>
											   <input type="checkbox" name="ids[]" value="{$v.id}" class="option_checkbox">
											</td>
											<td>{$v.id}</td>
											<td>{$v.name}</td>
											<td>{$v.mail}</td>
											<td>{$v.ip}</td>
											<td>{$v.beat}</td>
											<td>{$v.pointb}</td>
											<td>
											  <if condition="$v.lockstate eq 0">  
											   <!-- 
											    <span >未锁定</span>
											     -->
											     <span class="state_ok"></span> 
											  <elseif condition="$v.lockstate eq 1" />
											    <!-- 
											     <span style="color: red;">已锁定</span>
											      -->
											      	<span class="state_no"></span>
											  </if>
											  
											</td>
											
											
											
											
											<td align="center">
												<div style="width: 240px">
													<a class="operation_edit" href="__URL__/edit/id/{$v.id}"></a>  <!-- 编辑 -->
													<a class="operation_del" href="__URL__/del/id/{$v.id}"></a>  <!-- 删除 -->
													<a class="sendvirtual"  style="cursor: hand;" onclick="javascript:sendVirtualCoin({$v.id})"></a>  <!-- 赠送虚拟币 -->
												</div>
												
											</td>
										</tr>
									</iterate>
									
								</table>
							</form>
							
						</td>
					</tr>
					
					<!-- 分页 -->
					<tr>
						<td height="20"><div class="page">{$page}</div>
						</td>
					</tr>
					
					<!-- 下载数据文件 -->
					<tr>
						<td height="20">
						  <a href="__URL__/down/{$down}" class="downxls"></a>
						</td>
					</tr>
					<tr>
						<td height="40"></td>
					</tr>
					<tr>
						<td width="51%" class="left_txt"><img
							src="../Public/images/icon-mail2.gif" width="16" height="11">
							客户服务邮箱：{$Think.config.sysconfig.services_email}<br> <img
							src="../Public/images/icon-phone.gif" width="17" height="14">
							官方网站：{$Think.config.sysconfig.website}</td>
					</tr>
				</table>
			</td>
			<td background="../Public/images/mail_rightbg.gif">&nbsp;</td>
		</tr>
		<tr>
			<td valign="bottom" background="../Public/images/mail_leftbg.gif"><img
				src="../Public/images/buttom_left2.gif" width="17" height="17" />
			</td>
			<td background="../Public/images/buttom_bgs.gif"><img
				src="../Public/images/buttom_bgs.gif" width="17" height="17">
			</td>
			<td valign="bottom" background="../Public/images/mail_rightbg.gif"><img
				src="../Public/images/buttom_right2.gif" width="16" height="17" />
			</td>
		</tr>
	</table>
	
</body>
